package com.baizhi.controller;


import com.baizhi.entity.TreeNode;
import com.baizhi.service.LayuiCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhengg
 * @since 2020-07-29
 */
@RestController
@RequestMapping("/layui-company")
public class LayuiCompanyController {
    @Autowired
    private LayuiCompanyService cs;
    @RequestMapping("/selectAllCompanyAndDept")
    public List<TreeNode> selectAllCompanyAndDept(){
        return cs.selectAllCompanyAndDept();
    }
}
